
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" placeholder="请输入名称" value="{$wechat.user_name}" class="form-control" name="row[user_name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">手机号:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" placeholder="请输入手机号" value="{$wechat.user_phone}" class="form-control" name="row[user_phone]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">邮箱:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" placeholder="请输入邮箱" value="{$wechat.user_email}" class="form-control" name="row[user_email]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">Logo:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="35" name="row[user_logo]" type="text" value="{$wechat.user_logo}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-map" class="control-label col-xs-12 col-sm-2">选择坐标:</label>
        <div class="col-xs-3">
            <input id="lng" data-rule="required" name="row[user_lag]" class="form-control"   type="text" value="{$wechat.user_lag}" placeholder="请输入经度">

        </div>
        <div class="col-xs-3">
            <input id="lat" data-rule="required" name="row[user_lat]" class="form-control"   type="text" value="{$wechat.user_lat}" placeholder="请输入纬度">
        </div>
        <div class="col-xs-3">
            <div class="no-border no-padding">
                <span style="padding-left:22px;"><button type="button" id="fachoose-map" class="btn btn-primary map" data-input-id="c-map"  data-multiple="false">选择坐标</button></span>
            </div>
            <span class="msg-box n-right"></span>
            <ul class="row list-inline plupload-preview" id="p-map"></ul>
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">详细地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" placeholder="请输入详细地址" value="{$wechat.user_address}" id="address" class="form-control" name="row[user_address]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
